package com.xuly.dao;

import com.xuly.entity.Student;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import java.util.Date;

public interface CurrStudentDao extends CrudRepository<Student,Long> {
    @Modifying
    @Query("update Student s set s.createDate=?2 where s.stuName like ?1%")
    int updateStuByLikeName(String name, Date createDate);
}
